Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Check each receiving language before copying a target or approval state, and keep source glossary additions untranslated elsewhere. Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-NT4VWSHZ.
Exercise glossary addition through a translated language and verify that it leaves other languages untouched. The source-language form is read-only for this test user and correctly returns 403. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-NT4VWSHZ.
7b3e556 to
7cdead4
Compare
There was a problem hiding this comment.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="weblate/glossary/tests.py">
<violation number="1" location="weblate/glossary/tests.py:1016">
P2: The source-language fanout case is no longer tested. The removed test covered adding a term via `en` without `terminology`, and nothing replaces it. Add a test that calls `make_manager()` and then `do_add_unit(language="en")`, asserting that only the source unit and no other language units are created.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
| # Should be added to the source and translation only | ||
| self.assertEqual(Unit.objects.count(), start + 2) | ||
|
|
||
| def test_add_translation_does_not_translate_other_languages(self) -> None: |
There was a problem hiding this comment.
P2: The source-language fanout case is no longer tested. The removed test covered adding a term via en without terminology, and nothing replaces it. Add a test that calls make_manager() and then do_add_unit(language="en"), asserting that only the source unit and no other language units are created.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At weblate/glossary/tests.py, line 1016:
<comment>The source-language fanout case is no longer tested. The removed test covered adding a term via `en` without `terminology`, and nothing replaces it. Add a test that calls `make_manager()` and then `do_add_unit(language="en")`, asserting that only the source unit and no other language units are created.</comment>
<file context>
@@ -1013,19 +1013,15 @@ class GlossaryTest(ReusableViewTestCase):
- def test_add_source_does_not_translate_other_languages(self) -> None:
- self.do_add_unit(language="en")
+ def test_add_translation_does_not_translate_other_languages(self) -> None:
+ self.do_add_unit(language="cs")
units = Unit.objects.filter(
</file context>
Check each receiving language before copying a target or approval state, and keep source glossary additions untranslated elsewhere.
Discovered by Anthropic’s OSS Scanner, as vulnerability ANT-2026-NT4VWSHZ.